package flect.study;


import lombok.Data;

@Data
public class Student {
    private String name;
    private int age;
    private String sex;
    public Student() {
    }
    private Student(String name) {
        this.name = name;
    }
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public Student(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    private void eat() {
        System.out.println("student eat");
    }
    public void eat(String name) {
        System.out.println("student eat" + name);
    }
    private void sleep() {
        System.out.println("student sleep");
    }
    private void study() {
        System.out.println("student study");
    }


}
